package com.sj.uabrowser.mvp.video.contract;

import com.sj.uabrowser.framework.BasePresenter;
import com.sj.uabrowser.framework.BaseView;
import com.sj.uabrowser.mvp.video.bean.NVideoItem;
import com.sj.uabrowser.mvp.video.bean.NVideoTab;
import com.sj.uabrowser.mvp.video.bean.VideoNav;

import java.util.List;
import java.util.TreeMap;

public interface VideosContract {
    interface View extends BaseView<Presenter> {
        void showTabVideoList(List<NVideoTab> videoTab);
        void showVideosList(List<NVideoItem> videoNav);
        void updateVideoUrl(String url, int position);
        void showError(String msg, int errorCode);
    }

    interface Presenter extends BasePresenter {
        void fetchTabVideoList(TreeMap<String, Object> params);
        void fetchVideos(TreeMap<String, Object> params);
        void refreshVideos(TreeMap<String, Object> params);
        void updateVideoUrl(TreeMap<String, Object> params, int position);
    }
}
